using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN LoaiDiemService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: LoaiDiemService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class LoaiDiemService : ILoaiDiemService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: LoaiDiem_ID</para>
		/// <para>Output: LoaiDiemEntity</para>
		///</summary>
		public LoaiDiemEntity SelectOne(int LoaiDiem_ID){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			return dao.SelectOne(LoaiDiem_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaLoaiDiem</para>
		/// <para>Input: MaLoaiDiem</para>
		/// <para>Output: LoaiDiemEntity</para>
		///</summary>
		public LoaiDiemEntity SelectOneByMaLoaiDiem(string MaLoaiDiem){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			return dao.SelectOneByMaLoaiDiem(MaLoaiDiem);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of LoaiDiemEntity</para>
		///</summary>
		public List<LoaiDiemEntity> SelectAll(){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of LoaiDiemEntity</para>
		///</summary>
		public List<LoaiDiemEntity> SelectAllFilter(string strFilter){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: LoaiDiemEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(LoaiDiemEntity o){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: LoaiDiemEntity</para>
		/// <para>Output: LoaiDiemEntity</para>
		///</summary>
		public LoaiDiemEntity SaveRet(LoaiDiemEntity o){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of LoaiDiemEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<LoaiDiemEntity> list){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of LoaiDiemEntity</para>
		/// <para>Output: List of LoaiDiemEntity</para>
		///</summary>
		public List<LoaiDiemEntity> SaveListRet(List<LoaiDiemEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: LoaiDiemEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(LoaiDiemEntity o){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of LoaiDiemEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<LoaiDiemEntity> list){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaLoaiDiem</para>
		/// <para>Input: NewMaLoaiDiem,LoaiDiem_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaLoaiDiem(string NewMaLoaiDiem,int LoaiDiem_ID){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			return dao.UpdateMaLoaiDiem(NewMaLoaiDiem,LoaiDiem_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenLoaiDiem</para>
		/// <para>Input: NewTenLoaiDiem,LoaiDiem_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenLoaiDiem(string NewTenLoaiDiem,int LoaiDiem_ID){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			return dao.UpdateTenLoaiDiem(NewTenLoaiDiem,LoaiDiem_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateHeSo</para>
		/// <para>Input: NewHeSo,LoaiDiem_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateHeSo(Decimal NewHeSo,int LoaiDiem_ID){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			return dao.UpdateHeSo(NewHeSo,LoaiDiem_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateGhiChu</para>
		/// <para>Input: NewGhiChu,LoaiDiem_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateGhiChu(string NewGhiChu,int LoaiDiem_ID){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			return dao.UpdateGhiChu(NewGhiChu,LoaiDiem_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateIsDiemTongKet</para>
		/// <para>Input: NewIsDiemTongKet,LoaiDiem_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateIsDiemTongKet(bool NewIsDiemTongKet,int LoaiDiem_ID){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			return dao.UpdateIsDiemTongKet(NewIsDiemTongKet,LoaiDiem_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: LoaiDiemEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(LoaiDiemEntity o){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: LoaiDiem_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int LoaiDiem_ID){
			LoaiDiemDAO dao = new LoaiDiemDAO();
			return dao.DeleteByID(LoaiDiem_ID);
		}
		#endregion

		#region Select,delete by LoaiDiem_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END LoaiDiemWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

